package mobi.bantu.utils;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import mobi.bantu.bean.Operations;
import mobi.bantu.bean.task.ReportLog;

public class JianUtils {
    public static Map<Operations, ReportLog> logsTransMap(List<ReportLog> logs) {
        Map<Operations, ReportLog> map = new HashMap<>();
        for (ReportLog log : logs) {
            map.put(log.getOperation(), log);
        }
        return map;
    }
}
